Optimal. Leaf size=174 \[ \frac {8 a^2 (63 A+47 C) \tan (c+d x)}{315 d \sqrt {a+a \sec (c+d x)}}+\frac {2 a (63 A+47 C) \sqrt {a+a \sec (c+d x)} \tan (c+d x)}{315 d}+\frac {2 (63 A+22 C) (a+a \sec (c+d x))^{3/2} \tan (c+d x)}{315 d}+\frac {2 C \sec ^2(c+d x) (a+a \sec (c+d x))^{3/2} \tan (c+d x)}{9 d}+\frac {2 C (a+a \sec (c+d x))^{5/2} \tan (c+d x)}{21 a d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.31, antiderivative size = 174, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 35, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {4174, 4095,
4086, 3878, 3877} \begin {gather*} \frac {8 a^2 (63 A+47 C) \tan (c+d x)}{315 d \sqrt {a \sec (c+d x)+a}}+\frac {2 (63 A+22 C) \tan (c+d x) (a \sec (c+d x)+a)^{3/2}}{315 d}+\frac {2 a (63 A+47 C) \tan (c+d x) \sqrt {a \sec (c+d x)+a}}{315 d}+\frac {2 C \tan (c+d x) \sec ^2(c+d x) (a \sec (c+d x)+a)^{3/2}}{9 d}+\frac {2 C \tan (c+d x) (a \sec (c+d x)+a)^{5/2}}{21 a d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3877
Rule 3878
Rule 4086
Rule 4095
Rule 4174
Rubi steps
\begin {align*} \int \sec ^2(c+d x) (a+a \sec (c+d x))^{3/2} \left (A+C \sec ^2(c+d x)\right ) \, dx &=\frac {2 C \sec ^2(c+d x) (a+a \sec (c+d x))^{3/2} \tan (c+d x)}{9 d}+\frac {2 \int \sec ^2(c+d x) (a+a \sec (c+d x))^{3/2} \left (\frac {1}{2} a (9 A+4 C)+\frac {3}{2} a C \sec (c+d x)\right ) \, dx}{9 a}\\ &=\frac {2 C \sec ^2(c+d x) (a+a \sec (c+d x))^{3/2} \tan (c+d x)}{9 d}+\frac {2 C (a+a \sec (c+d x))^{5/2} \tan (c+d x)}{21 a d}+\frac {4 \int \sec (c+d x) (a+a \sec (c+d x))^{3/2} \left (\frac {15 a^2 C}{4}+\frac {1}{4} a^2 (63 A+22 C) \sec (c+d x)\right ) \, dx}{63 a^2}\\ &=\frac {2 (63 A+22 C) (a+a \sec (c+d x))^{3/2} \tan (c+d x)}{315 d}+\frac {2 C \sec ^2(c+d x) (a+a \sec (c+d x))^{3/2} \tan (c+d x)}{9 d}+\frac {2 C (a+a \sec (c+d x))^{5/2} \tan (c+d x)}{21 a d}+\frac {1}{105} (63 A+47 C) \int \sec (c+d x) (a+a \sec (c+d x))^{3/2} \, dx\\ &=\frac {2 a (63 A+47 C) \sqrt {a+a \sec (c+d x)} \tan (c+d x)}{315 d}+\frac {2 (63 A+22 C) (a+a \sec (c+d x))^{3/2} \tan (c+d x)}{315 d}+\frac {2 C \sec ^2(c+d x) (a+a \sec (c+d x))^{3/2} \tan (c+d x)}{9 d}+\frac {2 C (a+a \sec (c+d x))^{5/2} \tan (c+d x)}{21 a d}+\frac {1}{315} (4 a (63 A+47 C)) \int \sec (c+d x) \sqrt {a+a \sec (c+d x)} \, dx\\ &=\frac {8 a^2 (63 A+47 C) \tan (c+d x)}{315 d \sqrt {a+a \sec (c+d x)}}+\frac {2 a (63 A+47 C) \sqrt {a+a \sec (c+d x)} \tan (c+d x)}{315 d}+\frac {2 (63 A+22 C) (a+a \sec (c+d x))^{3/2} \tan (c+d x)}{315 d}+\frac {2 C \sec ^2(c+d x) (a+a \sec (c+d x))^{3/2} \tan (c+d x)}{9 d}+\frac {2 C (a+a \sec (c+d x))^{5/2} \tan (c+d x)}{21 a d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 1.31, size = 121, normalized size = 0.70 \begin {gather*} \frac {a (693 A+752 C+(567 A+748 C) \cos (c+d x)+(882 A+748 C) \cos (2 (c+d x))+189 A \cos (3 (c+d x))+136 C \cos (3 (c+d x))+189 A \cos (4 (c+d x))+136 C \cos (4 (c+d x))) \sec ^4(c+d x) \sqrt {a (1+\sec (c+d x))} \tan \left (\frac {1}{2} (c+d x)\right )}{630 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 10.12, size = 130, normalized size = 0.75
method | result | size |
default | \(-\frac {2 \left (-1+\cos \left (d x +c \right )\right ) \left (378 A \left (\cos ^{4}\left (d x +c \right )\right )+272 C \left (\cos ^{4}\left (d x +c \right )\right )+189 A \left (\cos ^{3}\left (d x +c \right )\right )+136 C \left (\cos ^{3}\left (d x +c \right )\right )+63 A \left (\cos ^{2}\left (d x +c \right )\right )+102 C \left (\cos ^{2}\left (d x +c \right )\right )+85 C \cos \left (d x +c \right )+35 C \right ) \sqrt {\frac {a \left (1+\cos \left (d x +c \right )\right )}{\cos \left (d x +c \right )}}\, a}{315 d \cos \left (d x +c \right )^{4} \sin \left (d x +c \right )}\) | \(130\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 3.78, size = 120, normalized size = 0.69 \begin {gather*} \frac {2 \, {\left (2 \, {\left (189 \, A + 136 \, C\right )} a \cos \left (d x + c\right )^{4} + {\left (189 \, A + 136 \, C\right )} a \cos \left (d x + c\right )^{3} + 3 \, {\left (21 \, A + 34 \, C\right )} a \cos \left (d x + c\right )^{2} + 85 \, C a \cos \left (d x + c\right ) + 35 \, C a\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{315 \, {\left (d \cos \left (d x + c\right )^{5} + d \cos \left (d x + c\right )^{4}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (a \left (\sec {\left (c + d x \right )} + 1\right )\right )^{\frac {3}{2}} \left (A + C \sec ^{2}{\left (c + d x \right )}\right ) \sec ^{2}{\left (c + d x \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.32, size = 268, normalized size = 1.54 \begin {gather*} \frac {4 \, {\left (315 \, \sqrt {2} A a^{6} \mathrm {sgn}\left (\cos \left (d x + c\right )\right ) + 315 \, \sqrt {2} C a^{6} \mathrm {sgn}\left (\cos \left (d x + c\right )\right ) - {\left (945 \, \sqrt {2} A a^{6} \mathrm {sgn}\left (\cos \left (d x + c\right )\right ) + 525 \, \sqrt {2} C a^{6} \mathrm {sgn}\left (\cos \left (d x + c\right )\right ) - {\left (1071 \, \sqrt {2} A a^{6} \mathrm {sgn}\left (\cos \left (d x + c\right )\right ) + 819 \, \sqrt {2} C a^{6} \mathrm {sgn}\left (\cos \left (d x + c\right )\right ) - {\left (567 \, \sqrt {2} A a^{6} \mathrm {sgn}\left (\cos \left (d x + c\right )\right ) + 423 \, \sqrt {2} C a^{6} \mathrm {sgn}\left (\cos \left (d x + c\right )\right ) - 2 \, {\left (63 \, \sqrt {2} A a^{6} \mathrm {sgn}\left (\cos \left (d x + c\right )\right ) + 47 \, \sqrt {2} C a^{6} \mathrm {sgn}\left (\cos \left (d x + c\right )\right )\right )} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2}\right )} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2}\right )} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2}\right )} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2}\right )} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )}{315 \, {\left (a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - a\right )}^{4} \sqrt {-a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + a} d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 10.68, size = 621, normalized size = 3.57 \begin {gather*} \frac {\sqrt {a+\frac {a}{\frac {{\mathrm {e}}^{-c\,1{}\mathrm {i}-d\,x\,1{}\mathrm {i}}}{2}+\frac {{\mathrm {e}}^{c\,1{}\mathrm {i}+d\,x\,1{}\mathrm {i}}}{2}}}\,\left ({\mathrm {e}}^{c\,1{}\mathrm {i}+d\,x\,1{}\mathrm {i}}\,\left (\frac {a\,\left (5\,A+4\,C\right )\,4{}\mathrm {i}}{9\,d}-\frac {a\,\left (7\,A+12\,C\right )\,4{}\mathrm {i}}{9\,d}+\frac {A\,a\,8{}\mathrm {i}}{9\,d}\right )-\frac {a\,\left (5\,A+4\,C\right )\,4{}\mathrm {i}}{9\,d}+\frac {a\,\left (7\,A+12\,C\right )\,4{}\mathrm {i}}{9\,d}-\frac {A\,a\,8{}\mathrm {i}}{9\,d}\right )}{\left ({\mathrm {e}}^{c\,1{}\mathrm {i}+d\,x\,1{}\mathrm {i}}+1\right )\,{\left ({\mathrm {e}}^{c\,2{}\mathrm {i}+d\,x\,2{}\mathrm {i}}+1\right )}^4}+\frac {\sqrt {a+\frac {a}{\frac {{\mathrm {e}}^{-c\,1{}\mathrm {i}-d\,x\,1{}\mathrm {i}}}{2}+\frac {{\mathrm {e}}^{c\,1{}\mathrm {i}+d\,x\,1{}\mathrm {i}}}{2}}}\,\left ({\mathrm {e}}^{c\,1{}\mathrm {i}+d\,x\,1{}\mathrm {i}}\,\left (\frac {a\,\left (3\,A+4\,C\right )\,4{}\mathrm {i}}{5\,d}-\frac {A\,a\,4{}\mathrm {i}}{5\,d}+\frac {C\,a\,16{}\mathrm {i}}{105\,d}\right )-\frac {A\,a\,12{}\mathrm {i}}{5\,d}+\frac {a\,\left (A+12\,C\right )\,4{}\mathrm {i}}{5\,d}\right )}{\left ({\mathrm {e}}^{c\,1{}\mathrm {i}+d\,x\,1{}\mathrm {i}}+1\right )\,{\left ({\mathrm {e}}^{c\,2{}\mathrm {i}+d\,x\,2{}\mathrm {i}}+1\right )}^2}+\frac {\sqrt {a+\frac {a}{\frac {{\mathrm {e}}^{-c\,1{}\mathrm {i}-d\,x\,1{}\mathrm {i}}}{2}+\frac {{\mathrm {e}}^{c\,1{}\mathrm {i}+d\,x\,1{}\mathrm {i}}}{2}}}\,\left ({\mathrm {e}}^{c\,1{}\mathrm {i}+d\,x\,1{}\mathrm {i}}\,\left (\frac {a\,\left (3\,A+8\,C\right )\,4{}\mathrm {i}}{7\,d}-\frac {a\,\left (A+C\right )\,16{}\mathrm {i}}{7\,d}+\frac {A\,a\,4{}\mathrm {i}}{7\,d}+\frac {C\,a\,32{}\mathrm {i}}{63\,d}\right )+\frac {A\,a\,12{}\mathrm {i}}{7\,d}-\frac {a\,\left (A+3\,C\right )\,16{}\mathrm {i}}{7\,d}+\frac {a\,\left (A-8\,C\right )\,4{}\mathrm {i}}{7\,d}\right )}{\left ({\mathrm {e}}^{c\,1{}\mathrm {i}+d\,x\,1{}\mathrm {i}}+1\right )\,{\left ({\mathrm {e}}^{c\,2{}\mathrm {i}+d\,x\,2{}\mathrm {i}}+1\right )}^3}-\frac {\sqrt {a+\frac {a}{\frac {{\mathrm {e}}^{-c\,1{}\mathrm {i}-d\,x\,1{}\mathrm {i}}}{2}+\frac {{\mathrm {e}}^{c\,1{}\mathrm {i}+d\,x\,1{}\mathrm {i}}}{2}}}\,\left ({\mathrm {e}}^{c\,1{}\mathrm {i}+d\,x\,1{}\mathrm {i}}\,\left (\frac {a\,\left (21\,A+34\,C\right )\,8{}\mathrm {i}}{315\,d}-\frac {A\,a\,4{}\mathrm {i}}{3\,d}\right )-\frac {A\,a\,4{}\mathrm {i}}{d}\right )}{\left ({\mathrm {e}}^{c\,1{}\mathrm {i}+d\,x\,1{}\mathrm {i}}+1\right )\,\left ({\mathrm {e}}^{c\,2{}\mathrm {i}+d\,x\,2{}\mathrm {i}}+1\right )}-\frac {a\,{\mathrm {e}}^{c\,1{}\mathrm {i}+d\,x\,1{}\mathrm {i}}\,\sqrt {a+\frac {a}{\frac {{\mathrm {e}}^{-c\,1{}\mathrm {i}-d\,x\,1{}\mathrm {i}}}{2}+\frac {{\mathrm {e}}^{c\,1{}\mathrm {i}+d\,x\,1{}\mathrm {i}}}{2}}}\,\left (189\,A+136\,C\right )\,4{}\mathrm {i}}{315\,d\,\left ({\mathrm {e}}^{c\,1{}\mathrm {i}+d\,x\,1{}\mathrm {i}}+1\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________